<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Title</title>

</head>
<body>
<form action="${pageContext.request.contextPath }/upload/test1" method="post"
      enctype="multipart/form-data">
    file: <input type="file" name="source"/> <br>
    <input type="submit" value="提交"/>
</form>

<a href="${pageContext.request.contextPath}/upload/test2?name=pinghengche.jpg">下载</a>
</body>
</html>
